'use strict';

angular.module('fm.services',['ngResource'])

.factory('Channel',['$resource',function($resource){
	var channels = {};
	var res = $resource('/channels');

	return{
		one:function(n) {
			channels = res.get();
			return channels;
		}
	};

}])

.factory('People',['$resource',function($resource){
	var peopleSongs = {};
	return{
		one:function(n) {
			var res = $resource('/peoples/'+n);
			peopleSongs = res.get();
			return peopleSongs;
		}
	};

}])



;
